package com.new2i.dao.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.new2i.model.SmsEntity;

/**
 * 短信模版ORM mapper
 * 
 * @since 2015/09/06
 * @author 2i
 *
 */
public interface SmsMapper {

	/**
	 * 创建短信模版
	 *  
	 * @since 2015/09/06
	 * @author 2i
	 * @param sms
	 * @return
	 */
	int insertSms(SmsEntity sms);

	/**
	 * 查询短信模版列表
	 * 
	 * @since 2015/09/06
	 * @author 2i
	 * @param doctor_id
	 * @param user_id
	 * @return
	 */
	List<HashMap<String, Object>> selectSmsListByDU(@Param("doctor_id") final int doctor_id,
			@Param("user_id") final int user_id);

}
